<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./public/admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./public/admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./public/admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./public/admin/Flat/img/favicon.ico">
	   	
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			<th width="150">订单ID</th>
			<th width="120">收货人</th>
			<th width="150">联系方式</th>
			<th width="250">收货地址</th>
			<th width="80">订单状态</th>
			<th width="150">操作</th>
			</tr>
			<?php foreach ($data as $k=>$v){?>
			<tr>
				<td><?php echo $v['onumber']?></td>
				<td><?php echo $v['consignee']?></td>
				<td><?php echo $v['phone']?></td>
				<td><?php echo $v['address']?></td>
				<td><?php echo $v['status']?></td>				
				<td>
					<a href="<?php echo U('Order/sendOrder',array('oid'=>$v['oid']))?>" class="btn btn-sm btn-warning">发货</a>
					<a href="<?php echo U('Order/del',array('oid'=>$v['oid']))?>" onclick="javascript:if(confirm('确定要删除吗？')){return true;}return false;" class="btn btn-sm btn-danger">删除</a>
				</td>
			</tr>
			<?php }?>
		</table>
	</body>
</html>
